package com.seu.project.seuquiz.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.IService;
import com.seu.project.seuquiz.model.dto.question.QuestionQueryRequest;
import com.seu.project.seuquiz.model.dto.userScoreMap.UserScoreMapQueryRequest;
import com.seu.project.seuquiz.model.entity.Question;
import com.seu.project.seuquiz.model.entity.UserScoreMap;

/**
* @author lenovo
* @description 针对表【user_score_map(用户-成绩map表)】的数据库操作Service
* @createDate 2023-07-15 13:47:58
*/
public interface UserScoreMapService extends IService<UserScoreMap> {

    /**
     * 根据查询参数构造queryWrapper
     * @param request
     * @return
     */
    QueryWrapper<UserScoreMap> getQueryWrapper(UserScoreMapQueryRequest request);

    /**
     *
     * @param studentId     学号
     * @param contestId     竞赛id
     * @param time          时间
     * @param score         分数
     * @return
     */
    long questionAdd(String studentId, String contestId, Integer time, Integer score);
}
